Skip to content

feat: add copy-to-clipboard button on contracts page#452

Merged
rdmueller merged 1 commit into
LLM-Coding:mainfrom
raifdmueller:feat/copy-contracts-clipboard
Apr 30, 2026
Merged

feat: add copy-to-clipboard button on contracts page#452
rdmueller merged 1 commit into
LLM-Coding:mainfrom
raifdmueller:feat/copy-contracts-clipboard

Conversation

@raifdmueller

Copy link
Copy Markdown
Contributor

Summary

  • Add "Copy" button next to "Download" on the contracts page
  • Redesign action bar: selected count badge, then Download and Copy buttons, then select/deselect links
  • Both buttons share buildContractsMarkdown() — same output format
  • Copy shows "Copied!" / "Kopiert!" feedback for 2 seconds
  • Both buttons disabled when no contracts selected
  • Bilingual (EN + DE)

Test plan

  • Select contracts, click Copy — verify clipboard contains markdown
  • Verify "Copied!" feedback appears and resets after 2s
  • Click Download — still works as before
  • No contracts selected — both buttons greyed out
  • Switch to DE — labels show "Kopieren" and "Kopiert!"

🤖 Generated with Claude Code

- Redesign action bar: count badge + Download + Copy buttons
- Extract buildContractsMarkdown() shared by download and copy
- Copy shows "Copied!" feedback for 2 seconds
- Both buttons disabled when no contracts selected
- Bilingual labels (EN + DE)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@raifdmueller has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 7 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 7fa25db0-d859-48f3-aca1-82d05a5387a8

📥 Commits

Reviewing files that changed from the base of the PR and between 81f2bad and 4685603.

📒 Files selected for processing (3)
  • website/src/components/contracts-page.js
  • website/src/translations/de.json
  • website/src/translations/en.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 13 minutes and 7 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@rdmueller rdmueller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rdmueller rdmueller merged commit 10b5238 into LLM-Coding:main Apr 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants